package edu.whu.puppygo.crawler;

import lombok.Data;
import us.codecraft.webmagic.model.annotation.ExtractBy;
import us.codecraft.webmagic.model.annotation.TargetUrl;

/**
 * @author guanruwang
 * @date 2023/12/11$
 */
@Data
@TargetUrl("https://www.chongwunet.com/cjxw")
@ExtractBy(value = "//*[@id=\"pagelet-feedlist\"]/ul/li", multi = true)
public class PetNews {

    @ExtractBy("//div[2]/p[1]/a/text()")
    private String title;

    @ExtractBy("//div[1]/div/a/img/@src")
    private String image;

    @ExtractBy("//div[2]/p[1]/a/@href")
    private String newsUrl;

}
